<?php
//调用
require_once 'shuj.php';

$name = $_GET["name"];
$content = $_GET["content"];
$time = date("Y-m-d H:i:s",time());
$color = $_GET["color"];
$password=$_GET["password"];

//var_dump($remark);

$sql = "INSERT INTO `wish` (`id`, `name`, `content`, `time`, `color`,`password`) VALUES (NULL, '$name', '$content', '$time', '$color','$password')";
//执行
$conn->query($sql);
//跳转到商品
header("Location:index.php");
?>